package com.sanctuary.models;

import java.lang.reflect.Field;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.sanctuary.interfaces.Model;

public class SolrResult implements Model {
	
	private String term;
	private double relavence;
	private boolean found;
	
	public SolrResult() {}
	
	public String getTerm() {
		return term;
	}

	public void setTerm(String term) {
		this.term = term;
	}

	public double getRelavence() {
		return relavence;
	}

	public void setRelavence(double relavence) {
		this.relavence = relavence;
	}

	public boolean isFound() {
		return found;
	}

	public void setFound(boolean found) {
		this.found = found;
	}

	public String getAliasName() {
		// TODO Auto-generated method stub
		return "solr-result";
	}
	public String toString() {
		return (new ReflectionToStringBuilder(this) {
			protected boolean accept(Field f) {
				return super.accept(f);
			}
		}).toString();
	}
}
